package com.learn.bytedance;

public class LazySingle {

    private volatile static LazySingle lazySingle = null;

    private LazySingle(){};


    public static LazySingle getInstance() {
        if (null == lazySingle) {
            synchronized (LazySingle.class) {
                if (null == lazySingle) {
                    lazySingle = new LazySingle();
                }
            }
        }
        return lazySingle;
    }
}
